Enable Reactant AD through parallel spin kernels - #922
Open
KookiesNKareem wants to merge 4 commits into
Open
Conversation
KookiesNKareem
marked this pull request as draft
August 1, 2026 19:01
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## remove-unnecessary-type-params #922 +/- ##
===============================================================
Coverage 91.64% 91.65%
===============================================================
Files 146 146
Lines 7525 7534 +9
===============================================================
+ Hits 6896 6905 +9
Misses 629 629
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
KookiesNKareem
force-pushed
the
branch/reactant-parallel-ad
branch
from
August 2, 2026 15:59
c849963 to
f2050aa
Compare
KookiesNKareem
marked this pull request as ready for review
August 2, 2026 18:53
cncastillo
requested changes
Aug 10, 2026
Contributor
There was a problem hiding this comment.
KomaMRI Benchmarks
Details
| Benchmark suite | Current: 3c7280b | Previous: 206593e | Ratio |
|---|---|---|---|
MRI Lab/Bloch/GPU/AMDGPU |
24431121 ns |
21312344 ns |
1.15 |
MRI Lab/Bloch/GPU/CUDA |
16415425 ns |
17449290 ns |
0.94 |
MRI Lab/Bloch/GPU/Metal |
69914209 ns |
50797250 ns |
1.38 |
MRI Lab/BlochMagnus2/GPU/AMDGPU |
24473021 ns |
21285980.5 ns |
1.15 |
MRI Lab/BlochMagnus2/GPU/CUDA |
16451149 ns |
17455335 ns |
0.94 |
MRI Lab/BlochMagnus2/GPU/Metal |
69603250 ns |
50882333 ns |
1.37 |
MRI Lab/BlochMagnus4/GPU/AMDGPU |
24497981 ns |
21389899.5 ns |
1.15 |
MRI Lab/BlochMagnus4/GPU/CUDA |
16479139 ns |
17553544 ns |
0.94 |
MRI Lab/BlochMagnus4/GPU/Metal |
70446854.5 ns |
51115958 ns |
1.38 |
Slice Selection 3D/Bloch/GPU/AMDGPU |
27497092 ns |
27274991.5 ns |
1.01 |
Slice Selection 3D/Bloch/GPU/CUDA |
18855924.5 ns |
19828203 ns |
0.95 |
Slice Selection 3D/Bloch/GPU/Metal |
108584500 ns |
79670875 ns |
1.36 |
Slice Selection 3D/BlochMagnus2/GPU/AMDGPU |
27505010.5 ns |
27256905 ns |
1.01 |
Slice Selection 3D/BlochMagnus2/GPU/CUDA |
18917732.5 ns |
19761035 ns |
0.96 |
Slice Selection 3D/BlochMagnus2/GPU/Metal |
108394666.5 ns |
79392250 ns |
1.37 |
Slice Selection 3D/BlochMagnus4/GPU/AMDGPU |
27460921.5 ns |
27246946.5 ns |
1.01 |
Slice Selection 3D/BlochMagnus4/GPU/CUDA |
18845949 ns |
19783973 ns |
0.95 |
Slice Selection 3D/BlochMagnus4/GPU/Metal |
108849583 ns |
79647166 ns |
1.37 |
This comment was automatically generated by workflow using github-action-benchmark.
cncastillo
approved these changes
Aug 10, 2026
KookiesNKareem
force-pushed
the
branch/reactant-parallel-ad
branch
from
August 19, 2026 23:45
252ac5b to
848e82e
Compare
KookiesNKareem
force-pushed
the
branch/reactant-parallel-ad
branch
from
August 21, 2026 04:57
848e82e to
3c7280b
Compare
KookiesNKareem
force-pushed
the
branch/reactant-parallel-ad
branch
from
August 24, 2026 21:52
3c7280b to
9dfc437
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ThreadsXand view construction when the parallel excitation/precession wrappers run with one worker, which is the GPU and Reactant pathValidation
0.6920155690793802(identical to native)[0.019503560659149446, 0.0196742608887282, 0.0][0.01950356065917826, 0.019674260888777644, -1.1922786455233403e-15]384/384; motion50/50384/384; motion50/5069/69Metal benchmark
BlochSimple, official benchmark fixtures, 30-second BenchmarkTools trials, explicitMetal.synchronize(), two warm runs per source state:Stacked on #814.